package combine.order.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import combine.order.impl.dao.ibatis.OrderItemDaoIbatis;
import combine.order.model.OrderItem;
import combine.order.model.OrderItemManger;

@Service
public class OrderItemManagerImpl implements OrderItemManger {

	@Autowired
	OrderItemDaoIbatis orderItemDaoIbatis;

	@Override
	public List<OrderItem> findOrderItemByOrderId(long orderId)
			throws SQLException {
		return orderItemDaoIbatis.findOrderItemByOrderId(orderId);
	}

	@Override
	public void insertOrderItem(OrderItem item) throws SQLException {
		orderItemDaoIbatis.insert(item);
	}

}
